package com.liang.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * Created with Intellij IDEA
 *
 * @Auther: liangjy
 * @Date: 2022/01/07/11:14
 * @Description: 秒杀demo 连接数据库
 */
@Entity
@Table(name = "goods_store", schema = "seckill")
@Getter
@Setter
@ToString
public class GoodsStore implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private String code;

    @Column(name = "store")
    private int store;
}
